package xcmg.device.dao.mapper.buyBack;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.buyBack.BuyBackDO;
import xcmg.device.service.vo.buyBack.BuyBackVO;

import java.util.List;

@Mapper
public interface BuyBackMapper {

    List<BuyBackDO> list(BuyBackVO buyBackVO);

    int deleteByPrimaryKey(String id);

    int insert(BuyBackDO record);

    BuyBackDO selectByPrimaryKey(String id);

    BuyBackDO findByBackOrder(@Param("backOrder") String backOrder, @Param("supplierOrgId") String supplierOrgId);

    BuyBackDO getByOrderNo(@Param("backOrder") String backOrder);

    int update(BuyBackDO record);

    int updateDel(@Param("ids") List<String> ids, @Param("del") Integer del);

    int updateInvalid(@Param("id") String id, @Param("invalid") Integer invalid);

    int findForDeleteByIds(@Param("ids") List<String> ids);

    int listCount(BuyBackVO buyBackVO);

    List<BuyBackDO> findByIds(@Param("ids") List<String> ids);
}